#version 460 core
#include "fadeOut.glsl"
out vec4 FragColor;

in float z;
uniform float fadeEndZ;
uniform float fadeZOffset;

uniform vec3 color;

void main()
{
	FragColor = vec4(fadeOutEdge(color, fadeEndZ, fadeZOffset, z), 1.0);
}